package com.csp.mingyue.system.api.feign;

import com.csp.mingyue.common.core.constant.ServiceNameConstants;
import com.csp.mingyue.common.core.vo.R;
import com.csp.mingyue.system.api.entity.SysLoginLog;
import com.csp.mingyue.system.api.entity.SysOperateLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Strive
 * @date 2023/11/15 11:10
 */
@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteLogService {

	/**
	 * 保存系统操作日志
	 * @param dto 系统操作日志
	 * @return R
	 */
	@PostMapping(value = "/sysOperateLog/save")
	R<Boolean> saveSysOperateLog(@RequestBody SysOperateLog dto);

	/**
	 * 保存系统登录日志
	 * @param dto 登录日志
	 * @return R
	 */
	@PostMapping(value = "/sysLoginLog/save")
	R<Boolean> saveLoginLog(SysLoginLog dto);

}
